.app-wrapper {
    @extend %width-height;
    position: relative;

    .app-header {
        position: fixed;
        z-index: 999;
        width: 100%;
        height: $topBarHeight;
        background-color: $topBarBgColor;
        box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05),
            0 1px 0 rgba(0, 0, 0, 0.05);

        .header-left {
            box-sizing: border-box;
            float: left;
            overflow: hidden;
            width: $sideBarWidth;
            height: 100%;
            background-color: $sideBarBgColor;
            border-bottom: 1px solid #454b61;
            transition: width 0.3s;

            .logo-link {
                display: inline-block;
                height: 100%;
                line-height: $topBarHeight;
                margin-left: 18px;
                font-size: 15px;
                font-weight: bold;
                color: $topBarTextColor;

                img {
                    position: relative;
                    margin-right: 8px;
                    top: -3px;
                    height: 28px;
                    background: #7bbafd;
                    border-radius: 20%;
                    vertical-align: middle;
                }
            }
        }

        .header-right {

            .header-right-bread {
                float: left;
                margin-left: 20px;
                height: 100%;
            }

            .header-right-info {
                float: right;
                height: 100%;
            }
        }
    }

    .app-container {
        position: relative;
        padding-top: $topBarHeight;
        width: 100%;
        height: calc(100% - 50px);

        .app-aside {
            position: fixed;
            z-index: 999;
            bottom: 0;
            left: 0;
            overflow: hidden;
            width: $sideBarWidth;
            height: calc(100% - 50px);
            background-color: $sideBarBgColor;
            transition: width 0.3s;
        }

        .app-main {
            position: relative;
            min-height: calc(100vh - 50px);
            margin-left: $sideBarWidth;
            transition: width 0.3s;

            .page-wraper {
                padding: 12px;
                min-width: 1000px;

                &.fullsize {
                    position: absolute;
                    left: 0;
                    top: 0;
                    right: 0;
                    bottom: 0;
                }

                &.fullsize-flex {
                    position: absolute;
                    left: 0;
                    top: 0;
                    right: 0;
                    bottom: 0;
                    display: flex;
                    flex-direction: column;

                    .grow-1 {
                        flex-grow: 1;
                    }
                }
            }
        }
    }
}

.closebar-app-wrapper {
    .app-aside {
        width: 64px !important;

        .el-menu--collapse>.side-item {
            width: 64px !important;
        }

        .el-menu--collapse>.side-item .el-menu-item [class^='el-icon-'],
        .el-menu--collapse>.side-item .el-submenu>.el-submenu__title [class^='el-icon-'] {
            margin: 0;
            vertical-align: middle;
            width: 24px;
            text-align: center;
        }

        .el-menu--collapse>.side-item .el-menu-item span,
        .el-menu--collapse>.side-item .el-submenu>.el-submenu__title span {
            height: 0;
            width: 0;
            overflow: hidden;
            visibility: hidden;
            display: inline-block;
        }

        .el-menu--collapse>.side-item .el-menu-item .el-submenu__icon-arrow,
        .el-menu--collapse>.side-item .el-submenu>.el-submenu__title .el-submenu__icon-arrow {
            display: none;
        }
    }

    .header-left {
        width: 64px !important;
        overflow: hidden;
    }

    .header-right,
    .app-main {
        margin-left: 64px !important;
    }
}